package com.autumn.platform.core.xml.context;

import org.springframework.beans.factory.parsing.ProblemReporter;
import org.springframework.beans.factory.parsing.SourceExtractor;
import org.springframework.beans.factory.xml.DocumentLoader;
import org.springframework.core.env.Environment;
import org.xml.sax.EntityResolver;
import org.xml.sax.ErrorHandler;

public interface IXmlParserContext {

    /**
     * 获取问题报告者
     * 
     * @return
     */
    public ProblemReporter getProblemReporter();

    /**
     * 获取源提取者
     * 
     * @return
     */
    public SourceExtractor getSourceExtractor();

    /**
     * 获取环境
     * 
     * @return
     */
    public Environment getEnvironment();

    /**
     * 获取文档加载器
     * 
     * @return
     */
    public DocumentLoader getDocumentLoader();

    /**
     * 获取实体解析器
     * 
     * @return
     */
    public EntityResolver getEntityResolver();

    /**
     * 获取错误处理器
     * 
     * @return
     */
    public ErrorHandler getErrorHandler();

    /**
     * 获取XML校验模式
     * 
     * @return
     */
    public XmlValidationMode getXmlValidationMode();
}
